<?php

namespace app\shop\model;

use think\Model;

class MemberMessage extends Model
{
    //消息类型获取器
    public function getTypeTextAttr($value, $data)
    {
        $types = [1 => '系统消息', 2 => '其他消息'];

        return $types[$data['type']];
    }
}
